package w6;

public class GoodDog {
	private int size;
	
	public int getSize() {
		return size;
	}
	
	public void setSize(int size) {
		if (size > 1) {
			this.size = size;
			return;
		}
		throw new IllegalArgumentException("不合法的值," + size);
	}
	
}
